import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/component/text.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkUI\n */\n/**\n * Text overflow options.\n *\n * Anonymous Object Rectification.\n * @interface TextOverflowOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 18\n */\ndeclare interface TextOverflowOptions {\n    /**\n     * Text overflow option.\n     *\n     * @type { TextOverflow }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Text overflow option.\n     *\n     * @type { TextOverflow }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Text overflow option.\n     *\n     * @type { TextOverflow }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Text overflow option.\n     *\n     * @type { TextOverflow }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Text overflow option.\n     *\n     * Anonymous Object Rectification.\n     * @type { TextOverflow }\n     * @default TextOverflow.Clip\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 18\n     */\n    overflow: TextOverflow;\n}\n/**\n * Provides an interface for writing texts.\n *\n * @interface TextInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 7\n */\n/**\n * Provides an interface for writing texts.\n *\n * @interface TextInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Provides an interface for writing texts.\n *\n * @interface TextInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Provides an interface for writing texts.\n *\n * @interface TextInterface\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ninterface TextInterface {\n    /**\n     * Called when writing text.\n     *\n     * @param { string | Resource } content\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when writing text.\n     *\n     * @param { string | Resource } content\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when writing text.\n     *\n     * @param { string | Resource } content\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when writing text.\n     *\n     * @param { string | Resource } content\n     * This parameter does not take effect if the component contains a Span child component and does not have any styled string configured.\n     * In this case, the span content is displayed, and the style of the component does not take effect.\n     * Default value: ' '\n     * @param { TextOptions } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    (content?: string | Resource, value?: TextOptions): TextAttribute;\n}\n/**\n * @extends CommonMethod<TextAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 7\n */\n/**\n * @extends CommonMethod<TextAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * @extends CommonMethod<TextAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * @extends CommonMethod<TextAttribute>\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare class TextAttribute extends CommonMethod<TextAttribute> {\n    /**\n     * Called when the font is set.\n     *\n     * @param { Font } value - the text font size and weight and family and style.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 10\n     */\n    /**\n     * Called when the font is set.\n     * Sets the text style, covering the font size, font width, font family, and font style.\n     *\n     * @param { Font } value - the text font size and weight and family and style.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    font(value: Font): TextAttribute;\n    /**\n     * Called when the font is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>It is only effective for the Text component, not for its child components.\n     * </p>\n     *\n     * @param { Font } fontValue - the text font size and weight and family and style.\n     * @param { FontSettingOptions } options - font setting options.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    font(fontValue: Font, options?: FontSettingOptions): TextAttribute;\n    /**\n     * Called when the font color is set.\n     *\n     * @param { ResourceColor } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the font color is set.\n     *\n     * @param { ResourceColor } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the font color is set.\n     *\n     * @param { ResourceColor } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the font color is set.\n     *\n     * @param { ResourceColor } value - Default value is '#e6182431'.The default value on wearable devices is '#c5ffffff'.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fontColor(value: ResourceColor): TextAttribute;\n    /**\n     * Called when the font size is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the font size is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the font size is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the font size is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If fontSize is of the number type, the unit fp is used.\n     * </p>\n     *\n     * @param { number | string | Resource } value - Default value is 16fp.The default value on wearable devices is 15fp.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fontSize(value: number | string | Resource): TextAttribute;\n    /**\n     * Called when the minimum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the minimum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the minimum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the minimum font size of the font is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>For the string type, numeric string values with optional units, for example, \"10\" or \"10fp\", are supported.\n     * <br>For the setting to take effect, this attribute must be used together with maxFontSize and maxLines,\n     * or layout constraint settings.\n     * <br>When the adaptive font size is used, the fontSize settings do not take effect.\n     * <br>If the value of minFontSize is less than or equal to 0, font size adaptation does not take effect.\n     * <br>In this case, the actual font size is determined by the value of fontSize.\n     * <br>If fontSize is not specified, the default value is used.\n     * <br>Since API version 18, this attribute takes effect on child components and styled strings,\n     * and the adaptive font size is applied to parts where the font size is not set.\n     * </p>\n     *\n     * @param { number | string | Resource } value - The unit is fp.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    minFontSize(value: number | string | Resource): TextAttribute;\n    /**\n     * Called when the maximum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the maximum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the maximum font size of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the maximum font size of the font is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>For the string type, numeric string values with optional units, for example, \"10\" or \"10fp\", are supported.\n     * <br>For the setting to take effect, this attribute must be used together with minFontSize and maxLines,\n     * or layout constraint settings.\n     * <br>When the adaptive font size is used, the fontSize settings do not take effect.\n     * <br>If the value of maxFontSize is less than or equal to 0, font size adaptation does not take effect.\n     * <br>In this case, the actual font size is determined by the value of fontSize.\n     * <br>If fontSize is not specified, the default value is used.\n     * <br>Since API version 18, this attribute takes effect on child components and styled strings,\n     * and the adaptive font size is applied to parts where the font size is not set.\n     * </p>\n     *\n     * @param { number | string | Resource } value - The unit is fp.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    maxFontSize(value: number | string | Resource): TextAttribute;\n    /**\n     * Called when the minimum font scale of the font is set.\n     * Value range: [0, 1]\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>A value less than 0 is handled as 0.\n     * <br>A value greater than 1 is handled as 1.\n     * <br>Abnormal values are ineffective by default.\n     * </p>\n     *\n     * @param { number | Resource } scale\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    minFontScale(scale: number | Resource): TextAttribute;\n    /**\n     * Called when the maximum font scale of the font is set.\n     * Value range: [1, +∞)\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>A value less than 1 is handled as 1.\n     * <br>Abnormal values are ineffective by default.\n     * </p>\n     *\n     * @param { number | Resource  } scale\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    maxFontScale(scale: number | Resource): TextAttribute;\n    /**\n     * Called when the font style of a font is set.\n     *\n     * @param { FontStyle } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the font style of a font is set.\n     *\n     * @param { FontStyle } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the font style of a font is set.\n     *\n     * @param { FontStyle } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the font style of a font is set.\n     *\n     * @param { FontStyle } value - Default value is FontStyle.Normal.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fontStyle(value: FontStyle): TextAttribute;\n    /**\n     * Called when the font weight is set.\n     *\n     * @param { number | FontWeight | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the font weight is set.\n     *\n     * @param { number | FontWeight | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the font weight is set.\n     *\n     * @param { number | FontWeight | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the font weight is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If the value is too large, the text may be clipped depending on the font.\n     * <br>For the number type, the value range is [100, 900], at an interval of 100.\n     * <br>The default value is 400.\n     * <br>A larger value indicates a heavier font weight.\n     * <br>For the string type, only strings that represent a number, for example, \"400\",\n     * and the following enumerated values of FontWeight are supported: \"bold\", \"bolder\", \"lighter\", \"regular\", and \"medium\".\n     * </p>\n     *\n     * @param { number | FontWeight | string } value - Default value is FontWeight.Normal.The default value on wearable devices is FontWeight.Regular.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the font weight is set.\n     *\n     * @param { number | FontWeight | ResourceStr } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 20\n     */\n    fontWeight(value: number | FontWeight | ResourceStr): TextAttribute;\n    /**\n     * Called when the font weight is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>It is only effective for the Text component, not for its child components.\n     * <br>For the number type, the value ranges from 100 to 900, at an interval of 100.\n     * <br>A larger value indicates a heavier font weight.\n     * <br>The default value is 400.\n     * <br>For the string type, only strings that represent a number, for example, \"400\",\n     * and the following enumerated values of FontWeight are supported: \"bold\", \"bolder\", \"lighter\", \"regular\", and \"medium\".\n     * </p>\n     *\n     * @param { number | FontWeight | string } weight\n     * @param { FontSettingOptions } options - font setting options.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    /**\n    * Called when the font weight is set.\n    *\n    * @param { number | FontWeight | ResourceStr } weight\n    * @param { FontSettingOptions } options - font setting options.\n    * @returns { TextAttribute }\n    * @syscap SystemCapability.ArkUI.ArkUI.Full\n    * @crossplatform\n    * @form\n    * @atomicservice\n    * @since 20\n    */\n    fontWeight(weight: number | FontWeight | ResourceStr, options?: FontSettingOptions): TextAttribute;\n    /**\n     * Set font line spacing.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If the value specified is less than or equal to 0, the default value 0 is used.\n     * </p>\n     *\n     * @param { LengthMetrics } value - Default value is 0.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    lineSpacing(value: LengthMetrics): TextAttribute;\n    /**\n     * Set font line spacing with options.\n     *\n     * @param { LengthMetrics } value\n     * @param { LineSpacingOptions } options\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    lineSpacing(value: LengthMetrics, options?: LineSpacingOptions): TextAttribute;\n    /**\n     * Called when the horizontal center mode of the font is set.\n     *\n     * @param { TextAlign } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the horizontal center mode of the font is set.\n     *\n     * @param { TextAlign } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the horizontal center mode of the font is set.\n     *\n     * @param { TextAlign } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the horizontal center mode of the font is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The text takes up the full width of the Text component.\n     * <br>To set vertical alignment for the text, use the align attribute.\n     * <br>The align attribute alone does not control the horizontal position of the text.\n     * <br>In other words, Alignment.TopStart, Alignment.Top, and Alignment.TopEnd produce the same effect,\n     * top-aligning the text; Alignment.Start, Alignment.Center, and Alignment.End produce the same effect,\n     * centered-aligning the text vertically; Alignment.BottomStart, Alignment.Bottom,\n     * and Alignment.BottomEnd produce the same effect, bottom-aligning the text.\n     * <br>When textAlign is set to TextAlign.JUSTIFY, you must set the wordBreak attribute,\n     * and the text in the last line is horizontally aligned with the start edge.\n     * </p>\n     *\n     * @param { TextAlign } value - Default value is TextAlign.Start.The default value on wearable devices is TextAlign.Center.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    textAlign(value: TextAlign): TextAttribute;\n    /**\n     * Called when the vertical center mode of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the vertical center mode of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the vertical center mode of the font is set.\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the vertical center mode of the font is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If the value is less than or equal to 0, the line height is not limited and the font size is adaptive.\n     * <br>If the value is of the number type, the unit fp is used.\n     * <br>For the string type, numeric string values with optional units, for example, \"10\" or \"10fp\", are supported.\n     * </p>\n     *\n     * @param { number | string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    lineHeight(value: number | string | Resource): TextAttribute;\n    /**\n     * Called when the overflow mode of the font is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the overflow mode of the font is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the overflow mode of the font is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the overflow mode of the font is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the overflow mode of the font is set.\n     *\n     * Anonymous Object Rectification.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>Text is clipped at the transition between words.\n     * <br>To clip text in the middle of a word, add \\u200B between characters.\n     * <br>Since API version 11, preferably set the wordBreak attribute to WordBreak.BREAK_ALL to achieve the same purpose.\n     * <br>If overflow is set to TextOverflow.None, TextOverflow.Clip, or TextOverflow.Ellipsis,\n     * this attribute must be used with maxLines for the settings to take effect.\n     * <br>TextOverflow.None produces the same effect as TextOverflow.Clip.\n     * <br>If overflow is set to TextOverflow.MARQUEE, the text scrolls in a line, and neither maxLines nor copyOption takes effect.\n     * <br>The textAlign attribute takes effect only when the text is not scrollable.\n     * <br>With overflow set to TextOverflow.MARQUEE, the clip attribute is set to true by default.\n     * <br>TextOverflow.MARQUEE is not available for CustomSpan of the styled string.\n     * <br>Since API version 12, TextOverflow.MARQUEE is available for the ImageSpan component,\n     * where the text and images are displayed in scrolling mode in a line.\n     * </p>\n     *\n     * @param { TextOverflowOptions } options - Text overflow options.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 18\n     */\n    textOverflow(options: TextOverflowOptions): TextAttribute;\n    /**\n     * Called when the font list of text is set.\n     *\n     * @param { string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the font list of text is set.\n     *\n     * @param { string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the font list of text is set.\n     *\n     * @param { string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the font list of text is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>Default font: 'HarmonyOS Sans'\n     * <br>The 'HarmonyOS Sans' font and registered custom fonts are supported for applications.\n     * <br>Only the 'HarmonyOS Sans' font is supported for widgets.\n     * </p>\n     *\n     * @param { string | Resource } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    fontFamily(value: string | Resource): TextAttribute;\n    /**\n     * Called when the maximum number of lines of text is set.\n     *\n     * @param { number } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the maximum number of lines of text is set.\n     *\n     * @param { number } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the maximum number of lines of text is set.\n     *\n     * @param { number } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the maximum number of lines of text is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>By default, text is automatically folded.\n     * <br>If this attribute is specified, the text will not exceed the specified number of lines.\n     * <br>If there is extra text, you can use textOverflow to specify how it is displayed.\n     * </p>\n     *\n     * @param { number } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    maxLines(value: number): TextAttribute;\n    /**\n     * Called when the text decoration of the text is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the text decoration of the text is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the text decoration of the text is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the text decoration of the text is set.\n     *\n     * @param { object } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the text decoration of the text is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The style parameter cannot be used in widgets.\n     * </p>\n     *\n     * @param { DecorationStyleInterface } value - Default value is { type: TextDecorationType.None, color: Color.Black, style: TextDecorationStyle.SOLID }.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    decoration(value: DecorationStyleInterface): TextAttribute;\n    /**\n     * Called when the distance between text fonts is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the distance between text fonts is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the distance between text fonts is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the distance between text fonts is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If the value specified is a percentage or 0, the default value is used.\n     * <br>For the string type, numeric string values with optional units, for example, \"10\" or \"10fp\", are supported.\n     * <br>If the value specified is a negative value, the text is compressed.\n     * <br>A negative value too small may result in the text being compressed to 0 and no content being displayed.\n     * </p>\n     *\n     * @param { number | string } value - The unit is fp.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n    * Called when the distance between text fonts is set.\n    *\n    * @param { number | ResourceStr } value\n    * @returns { TextAttribute }\n    * @syscap SystemCapability.ArkUI.ArkUI.Full\n    * @crossplatform\n    * @form\n    * @atomicservice\n    * @since 20\n    */\n    letterSpacing(value: number | ResourceStr): TextAttribute;\n    /**\n     * Called when the type of letter in the text font is set.\n     *\n     * @param { TextCase } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the type of letter in the text font is set.\n     *\n     * @param { TextCase } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the type of letter in the text font is set.\n     *\n     * @param { TextCase } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the type of letter in the text font is set.\n     *\n     * @param { TextCase } value - Default value is TextCase.Normal.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    textCase(value: TextCase): TextAttribute;\n    /**\n     * Called when the baseline offset is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 7\n     */\n    /**\n     * Called when the baseline offset is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Called when the baseline offset is set.\n     *\n     * @param { number | string } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the baseline offset is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If the value specified is a percentage, the default value is used.\n     * <br>Positive values shift the content upwards, while negative values shift it downwards.\n     * </p>\n     *\n     * @param { number | string } value - Default value is 0.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    /**\n    * Called when the baseline offset is set.\n    *\n    * @param { number | ResourceStr } value\n    * @returns { TextAttribute }\n    * @syscap SystemCapability.ArkUI.ArkUI.Full\n    * @crossplatform\n    * @form\n    * @atomicservice\n    * @since 20\n    */\n    baselineOffset(value: number | ResourceStr): TextAttribute;\n    /**\n     * Allow replication.\n     *\n     * @param { CopyOptions } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @since 9\n     */\n    /**\n     * Allow replication.\n     *\n     * @param { CopyOptions } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Allow replication.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>If this attribute is set to CopyOptions.InApp or CopyOptions.LocalDevice,\n     * a long press on the text will display a context menu that offers the copy and select-all options.\n     * <br>Because widgets do not have the long press event, the context menu will not be displayed when users long press text.\n     * </p>\n     *\n     * @param { CopyOptions } value - Default value is CopyOptions.None.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    copyOption(value: CopyOptions): TextAttribute;\n    /**\n     * Enable the selectable area can be dragged.\n     *\n     * @param { boolean } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Enable the selectable area can be dragged.\n     *\n     * @param { boolean } value\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enable the selectable area can be dragged.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>This attribute cannot be used together with the onDragStart event.\n     * <br>It must be used together with CopyOptions.\n     * <br>When it is set to true and copyOptions is set to CopyOptions.InApp or CopyOptions.LocalDevice,\n     * the selected text can be dragged and copied to the text box.\n     * </p>\n     *\n     * @param { boolean } value - Default value is false.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    draggable(value: boolean): TextAttribute;\n    /**\n     * Called when the text shadow is set.\n     *\n     * @param { ShadowOptions } value - The shadow options.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @since 10\n     */\n    /**\n     * Called when the text shadow is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>This API does not work with the fill attribute or coloring strategy.\n     * </p>\n     *\n     * @param { ShadowOptions | Array<ShadowOptions> } value - The shadow options.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 11\n     */\n    textShadow(value: ShadowOptions | Array<ShadowOptions>): TextAttribute;\n    /**\n     * Called when the height adaptive policy is set.\n     *\n     * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Called when the height adaptive policy is set.\n     *\n     * <p><strong>NOTE</strong>:\n     * <ul>\n     * <li>When this attribute is set to TextHeightAdaptivePolicy.MAX_LINES_FIRST,\n     * the maxLines attribute takes precedence for adjusting the text height.\n     * <br>If the maxLines setting results in a layout beyond the layout constraints,\n     * the text will shrink to a font size between minFontSize and maxFontSize to allow for more content to be shown.</li>\n     * <li>If this attribute is set to TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST,\n     * the minFontSize attribute takes precedence for adjusting the text height.\n     * <br>If the text fits on one line at minFontSize,the system attempts to increase the font size within the range of minFontSize\n     * and maxFontSize to display the text as large as possible on one line.\n     * <br>If the text cannot fit into a single line even at minFontSize, it sticks with minFontSize.</li>\n     * <li>If this attribute is set to TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST,\n     * the layout constraints take precedence for adjusting the text height.\n     * <br>If the resultant layout is beyond the layout constraints,\n     * the text will shrink to a font size between minFontSize and maxFontSize to respect the layout constraints.\n     * <br>If the text still extends beyond the layout constraints after shrinking to minFontSize,\n     * the lines that exceed the constraints are deleted.</li>\n     * </ul>\n     * </p>\n     *\n     * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.Default value is TextHeightAdaptivePolicy.MAX_LINES_FIRST.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAttribute;\n    /**\n     * Specify the indentation of the first line in a text-block.\n     *\n     * @param { Length } value - The length of text indent.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Specify the indentation of the first line in a text-block.\n     *\n     * @param { Length } value - The length of text indent.Default value is 0.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    textIndent(value: Length): TextAttribute;\n    /**\n     * Set the word break type.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>When used with {overflow: TextOverflow.Ellipsis} and maxLines, WordBreak.BREAK_ALL can insert line breaks\n     * between letters when overflow occurs and display excess content with an ellipsis (...).\n     * </p>\n     *\n     * @param { WordBreak } value - The word break type.Default value is WordBreak.BREAK_WORD.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    wordBreak(value: WordBreak): TextAttribute;\n    /**\n     * Set the text line break strategy type.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>This attribute takes effect when wordBreak is not set to breakAll.\n     * <br>Hyphens are not supported.\n     * </p>\n     *\n     * @param { LineBreakStrategy } strategy - The text line break strategy type.Default value is LineBreakStrategy.GREEDY.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    lineBreakStrategy(strategy: LineBreakStrategy): TextAttribute;\n    /**\n     * Called when using the Clipboard menu\n     * Currently, only text can be copied.\n     *\n     * @param { function } callback - callback of the listened event.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    onCopy(callback: (value: string) => void): TextAttribute;\n    /**\n     * Text selection is achieved by specifying the start and end positions of the text.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The selected text is highlighted, and a selection handle is displayed together with a menu of available actions.\n     * <br>When copyOption is set to CopyOptions.None, the selection attribute is not effective.\n     * <br>When overflow is set to TextOverflow.MARQUEE, the selection attribute is not effective.\n     * <br>If the value of selectionStart is greater than or equal to that of selectionEnd, no text will be selected.\n     * <br>The value range is [0, textSize], where textSize indicates the maximum number of characters in the text content.\n     * <br>If the value is less than 0, the value 0 will be used.\n     * <br>If the value is greater than textSize, textSize will be used.\n     * <br>If the value of selectionStart or selectionEnd falls within the invisible area, no text will be selected.\n     * <br>If clipping is disabled, the text selection outside of the parent component takes effect.\n     * </p>\n     *\n     * @param { number } selectionStart - The start position of the selected text.Default value is -1.\n     * @param { number } selectionEnd - The end position of the selected text.Default value is -1.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    selection(selectionStart: number, selectionEnd: number): TextAttribute;\n    /**\n     * Set the caret color for the selected text.\n     *\n     * @param { ResourceColor } color - The color of the selected text caret.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 14\n     */\n    caretColor(color: ResourceColor): TextAttribute;\n    /**\n     * Set the selected background color of the text.\n     *\n     * @param { ResourceColor } color - The color of the selected text background.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 14\n     */\n    selectedBackgroundColor(color: ResourceColor): TextAttribute;\n    /**\n     * Set the ellipsis mode.\n     *\n     * @param { EllipsisMode } value - The ellipsis mode.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Set the ellipsis mode.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>For the settings to work, overflow must be set to TextOverflow.Ellipsis and maxLines must be specified.\n     * <br>Setting ellipsisMode alone does not take effect.\n     * <br>EllipsisMode.START and EllipsisMode.CENTER take effect only when text overflows in a single line.\n     * </p>\n     *\n     * @param { EllipsisMode } value - The ellipsis mode.Default value is EllipsisMode.END.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    ellipsisMode(value: EllipsisMode): TextAttribute;\n    /**\n     * Enable data detector.\n     *\n     * @param { boolean } enable - Enable data detector.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 11\n     */\n    /**\n     * Enable data detector.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>This API only works on devices that provide text recognition.\n     * <br>When enableDataDetector is set to true, and the dataDetectorConfig attribute is not set,\n     * all types of entities are recognized by default,\n     * and the color and decoration of the recognized entities will be changed to the following styles:\n     * <code>\n     *   color: '#ff007dff',\n     *   decoration:{\n     *      type: TextDecorationType.Underline,\n     *      color: '#ff007dff',\n     *      style: TextDecorationStyle.SOLID\n     *   }\n     * </code>\n     * <br>Touching and right-clicking an entity with the mouse will pop up the corresponding entity operation menu based on the type of entity,\n     * while left-clicking an entity with the mouse will directly respond to the first option of the menu.\n     * <br>This API does not work when overflow is set to TextOverflow.MARQUEE.\n     * <br>When copyOption is set to CopyOptions.None, the menu displayed after an entity is clicked does not provide the text selection,\n     * copy, translation, or sharing functionality.\n     * <br>When copyOption is not set to CopyOptions.None, and textSelectable is set to TextSelectableMode.UNSELECTABLE,\n     * the entity still has the copy functionality but does not have the text selection feature.\n     * </p>\n     *\n     * @param { boolean } enable - Enable data detector.Default value is false.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    enableDataDetector(enable: boolean): TextAttribute;\n    /**\n     * Data detector with config.\n     *\n     * @param { TextDataDetectorConfig } config - The config of text data detector.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 11\n     */\n    /**\n     * Data detector with config.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>This API must be used together with enableDataDetector.\n     * <br>It takes effect only when enableDataDetector is set to true.\n     * <br>When entities A and B overlap, the following rules are followed:\n     * <ol>\n     * <li>If A is a subset of B (A ⊂ B), then B is retained; otherwise, A is retained.</li>\n     * <li>If A is not a subset of B (A ⊄ B) and B is not a subset of A (B ⊄ A),\n     * and if the starting point of A is earlier than that of B (A.start < B.start),\n     * then A is retained; otherwise, B is retained.</li>\n     * </ol>\n     * </p>\n     *\n     * @param { TextDataDetectorConfig } config - The config of text data detector.\n     * @returns { TextAttribute } The attribute of the text.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @atomicservice\n     * @since 12\n     */\n    dataDetectorConfig(config: TextDataDetectorConfig): TextAttribute;\n    /**\n     * Bind to the selection menu.\n     *\n     * @param { TextSpanType } spanType - Indicates the type of selection menu.\n     * @param { CustomBuilder } content - Indicates the content of selection menu.\n     * @param { TextResponseType } responseType - Indicates response type of selection menu.\n     * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Bind to the selection menu.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The duration required for a long-press gesture is 600 ms for bindSelectionMenu and 800 ms for bindContextMenu.\n     * <br>When both bindSelectionMenu and bindContextMenu are set and both are configured to be triggered by a long-press gesture,\n     * bindSelectionMenu is triggered first.\n     * <br>If the custom menu is too long, embed a Scroll component to prevent the keyboard from being blocked.\n     * </p>\n     *\n     * @param { TextSpanType } spanType - Indicates the type of selection menu.Default value is TextSpanType.TEXT.\n     * @param { CustomBuilder } content - Indicates the content of selection menu.\n     * @param { TextResponseType } responseType - Indicates response type of selection menu.Default value is TextResponseType.LONG_PRESS.\n     * @param { SelectionMenuOptions } [options] - Indicates the options of selection menu.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): TextAttribute;\n    /**\n     * Called when the text selection changes.\n     *\n     * @param { function } callback - callback of the listened event.\n     * @returns { TextAttribute } returns the instance of the TextAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Called when the text selection changes.\n     *\n     * @param { function } callback - callback of the listened event.\n     * @returns { TextAttribute } returns the instance of the TextAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAttribute;\n    /**\n     * Set font feature.\n     *\n     * @param { string } value - The fontFeature.\n     * normal | <feature-tag-value>,\n     * where <feature-tag-value> = <string> [ <integer> | on | off ], like: \"ss01\" 0\n     * the values of <feature-tag-value> reference to doc of text component\n     * number of <feature-tag-value> can be single or multiple, and separated by comma ','.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    fontFeature(value: string): TextAttribute;\n    /**\n     * Set the marquee options.\n     *\n     * @param { Optional<TextMarqueeOptions> } options\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    marqueeOptions(options: Optional<TextMarqueeOptions>): TextAttribute;\n    /**\n     * Called when the text marquee state changes.\n     *\n     * @param { Callback<MarqueeState> } callback - callback of the marquee state change event.\n     * @returns { TextAttribute } returns the instance of the TextAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onMarqueeStateChange(callback: Callback<MarqueeState>): TextAttribute;\n    /**\n     * Whether to support sensitive privacy information\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The value true means to enable privacy mode, in which case text is obscured as hyphens (-).\n     * <br>If this parameter is set to null, privacy mode is disabled.\n     * <br>Enabling privacy mode requires widget framework support.\n     * </p>\n     *\n     * @param { boolean } supported - Whether to support sensitive privacy information.Default value is false.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @form\n     * @atomicservice\n     * @since 12\n     */\n    privacySensitive(supported: boolean): TextAttribute;\n    /**\n     * set text selectable and focusable\n     *\n     * @param { TextSelectableMode } mode - Default value is TextSelectableMode.SELECTABLE_UNFOCUSABLE.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    textSelectable(mode: TextSelectableMode): TextAttribute;\n    /**\n     * Set the custom text menu.\n     * Sets the extended options of the custom context menu on selection,\n     * including the text content, icon, and callback.\n     *\n     * @param { EditMenuOptions } editMenu - Customize text menu options.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    editMenuOptions(editMenu: EditMenuOptions): TextAttribute;\n    /**\n     * Set the text with half leading.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The halfLeading settings configured within the component take precedence over those in module.json5.\n     * <br>The value true means that half leading is enabled, and false means the opposite.\n     * </p>\n     *\n     * @param { boolean } halfLeading - Default value is false.\n     * @returns { TextAttribute }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    halfLeading(halfLeading: boolean): TextAttribute;\n    /**\n     * Enable or disable haptic feedback.\n     *\n     * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.\n     * @returns { TextAttribute } returns the instance of the TextAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 13\n     */\n    enableHapticFeedback(isEnabled: boolean): TextAttribute;\n    /**\n     * Set whether to optimize the trailing spaces at the end of each line during text layout.\n     *\n     * @param { Optional<boolean> } optimize - Default value is false, set true to optimize the trailing spaces at the end of each line.\n     * @returns { TextAttribute } returns the instance of the TextAttribute.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    optimizeTrailingSpace(optimize: Optional<boolean>): TextAttribute;\n}\n/**\n * Defines Text Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 7\n */\n/**\n * Defines Text Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Defines Text Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Defines Text Component instance.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare const TextInstance: TextAttribute;\n/**\n * Defines Text Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 7\n */\n/**\n * Defines Text Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @form\n * @since 9\n */\n/**\n * Defines Text Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @since 10\n */\n/**\n * Defines Text Component.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @form\n * @atomicservice\n * @since 11\n */\ndeclare const Text: TextInterface;\n/**\n * Defines span type.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines span type.\n *\n * <p><strong>NOTE</strong>:\n * <br>The order for menu type matching is as follows.\n * <br>When the user interacts with text, the system follows this order to decides which type of menu to display.\n * <ol>\n * <li>Check whether a menu is registered for TextSpanType.TEXT and TextResponseType.LONG_PRESS.</li>\n * <li>Check whether a menu is registered for TextSpanType.TEXT and TextResponseType.DEFAULT.</li>\n * <li>Check whether a menu is registered for TextSpanType.DEFAULT and TextResponseType.LONG_PRESS.</li>\n * <li>Check whether a menu is registered for TextSpanType.DEFAULT and TextResponseType.DEFAULT.</li>\n * </ol>\n * </p>\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare enum TextSpanType {\n    /**\n     * Only contains text.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Only contains text.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    TEXT = 0,\n    /**\n     * Only contains image.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Only contains image.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    IMAGE = 1,\n    /**\n     * Contains both text and image.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Contains both text and image.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    MIXED = 2,\n    /**\n     * When no other types are explicitly specified, this type will be matched.\n     * When this type is registered but TEXT, IMAGE, or MIXED types are not registered,\n     * this type will be triggered and displayed for those registered types.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    DEFAULT = 3\n}\n/**\n * ResponseType for contextMenu\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * ResponseType for contextMenu\n *\n * <p><strong>NOTE</strong>:\n * <br>The order for menu type matching is as follows. When the user interacts with text,\n * the system follows this order to decides which type of menu to display.\n * <ol>\n * <li>Check whether a menu is registered for TextSpanType.TEXT and TextResponseType.LONG_PRESS.</li>\n * <li>Check whether a menu is registered for TextSpanType.TEXT and TextResponseType.DEFAULT.</li>\n * <li>Check whether a menu is registered for TextSpanType.DEFAULT and TextResponseType.LONG_PRESS.</li>\n * <li>Check whether a menu is registered for TextSpanType.DEFAULT and TextResponseType.DEFAULT.</li>\n * </ol>\n * </p>\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare enum TextResponseType {\n    /**\n     * Right click.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Right click.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    RIGHT_CLICK = 0,\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    LONG_PRESS = 1,\n    /**\n     * Selected by mouse.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Selected by mouse.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    SELECT = 2,\n    /**\n     * When no other types are explicitly specified, this type will be matched.\n     * When this type is registered but RIGHT_CLICK, LONG_PRESS, or SELECT types are not registered,\n     * this type will be triggered and displayed for right-click, long press, and mouse selection actions.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    DEFAULT = 3\n}\n/**\n * Defines marquee state.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare enum MarqueeState {\n    /**\n     * The marquee started.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    START = 0,\n    /**\n     * The marquee a round finished and start next round.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    BOUNCE = 1,\n    /**\n     * The marquee all finished.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    FINISH = 2\n}\n/**\n * Defines marquee start policy.\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare enum MarqueeStartPolicy {\n    /**\n     * Start marquee in any case. This is the default policy.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    DEFAULT = 0,\n    /**\n     * Start marquee only when get focus.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    ON_FOCUS = 1\n}\n/**\n * Defines the options of Text.\n *\n * @interface TextOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the options of Text.\n *\n * @interface TextOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface TextOptions {\n    /**\n     * Text controller.\n     *\n     * @type { TextController }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Text controller.\n     *\n     * @type { TextController }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    controller: TextController;\n}\n/**\n * Defines the marquee options.\n *\n * @interface TextMarqueeOptions\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare interface TextMarqueeOptions {\n    /**\n     * Is need start marquee.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    start: boolean;\n    /**\n     * The step size of the marquee.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    step?: number;\n    /**\n     * The rounds of the marquee.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    loop?: number;\n    /**\n     * The running direction of the marquee.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    fromStart?: boolean;\n    /**\n     * The waiting time between each round of the marquee.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    delay?: number;\n    /**\n     * Set whether the text is faded out.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    fadeout?: boolean;\n    /**\n     * The start policy for marquee.\n     *\n     * @type { ?MarqueeStartPolicy }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    marqueeStartPolicy?: MarqueeStartPolicy;\n}\n/**\n * Defines the controller of Text.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 11\n */\n/**\n * Defines the controller of Text.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare class TextController {\n    /**\n     * Close the select menu when menu is on.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Close the select menu when menu is on.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    closeSelectionMenu(): void;\n    /**\n     * Update the styles of StyledString by setStyledString.\n     *\n     * <p><strong>NOTE</strong>:\n     * <br>The child class MutableStyledString of StyledString can also serve as the argument.\n     * </p>\n     *\n     * @param { StyledString } value\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    setStyledString(value: StyledString): void;\n    /**\n     * Get LayoutManager.\n     *\n     * @returns { LayoutManager } - Return the LayoutManager.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    getLayoutManager(): LayoutManager;\n}\n",
}
export default FILE;